<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Platename')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-platename" class="form-control" data-rule="required" name="row[platename]" type="text" value="{$row.platename|htmlentities}">
        </div>
    </div>
    <!--icon-->
    <div class="form-group">
        <label for="c-plateicon" class="control-label col-xs-12 col-sm-2">{:__('Plateicon')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-plateicon" data-rule="" class="form-control hidden" size="50" name="row[plateicon]" type="text" value="{$row.plateicon}">
                <div class="input-group-addon no-border no-padding" style="display: table;">
                    <span>
                        <button type="button"
                                data-url="upload_file/uploadOBS"
                                id="faupload-avatar"
                                class="btn btn-danger faupload"
                                data-input-id="c-plateicon"
                                data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                                data-multiple="false"
                                data-preview-id="p-plateicon"><i class="fa fa-upload"></i> {:__('Upload')}
                        </button>
                    </span>
                    <span>
                        <button type="button"
                                id="fachoose-avatar"
                                class="btn btn-primary fachoose"
                                data-input-id="c-plateicon"
                                data-mimetype="image/*"
                                data-multiple="false">
                            <i class="fa fa-list"></i> {:__('Choose')}</button>
                    </span>
                </div>
                <span class="msg-box n-right" for="c-plateicon"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-plateicon"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Creattime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-creattime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[creattime]" type="text" value="{$row.creattime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Admin')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin" class="form-control" name="row[admin]" type="text" value="{$row.admin|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Plateontent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-plateontent" class="form-control" name="row[plateontent]" type="text" value="{$row.plateontent|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Plategg')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-plategg" class="form-control" name="row[plategg]" type="text" value="{$row.plategg|htmlentities}">
        </div>
    </div>
    <!--    会员价格-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Membership_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-membership_price" class="form-control" name="row[membership_price]" type="number" step="any" min="0" data-rule="required;range(0~)" value="{$row.membership_price|htmlentities}">
        </div>
    </div>
    <!--    会员时长-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Membership_duration')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-membership_duration" class="form-control" name="row[membership_duration]" type="number" step="1" min="0" data-rule="required;digits;integer;range(0~)" value="{$row.membership_duration|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
